<?php

/**
 * ECTouch Open Source Project
 * ============================================================================
 * Copyright (c) 2012-2014 http://ectouch.cn All rights reserved.
 * ----------------------------------------------------------------------------
 * 文件名称：UserModel.php
 * ----------------------------------------------------------------------------
 * 功能描述：ECTouch 用户模型
 * ----------------------------------------------------------------------------
 * Licensed ( http://www.ectouch.cn/docs/license.txt )
 * ----------------------------------------------------------------------------
 */

/* 访问控制 */
defined('IN_ECTOUCH') or die('Deny Access');

class MshopPaymentModel extends BaseModel {

    protected $table = 'mshop_payment';
    function getInfoByPay_id($pay_id) {

     $sql = " SELECT * FROM " . $this->pre ."mshop_payment WHERE pay_id= '$pay_id'";
     $data=$this->row($sql);

     return $data;
    }
     function getAllPayment() 
     {

     $sql = " SELECT * FROM " . $this->pre ."mshop_payment  where enabled='1' order by pay_order desc";


     $data=$this->query($sql);

     return $data;
    }

}
